<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <p></p>
    <p></p>
    <p></p>


    <script>

        var oPs = document.querySelectorAll('p') ;   // 深复制

        console.log(oPs);


        var oP = document.createElement('p') ;
        document.body.appendChild(oP)


        console.log(oPs);


        oPs = document.querySelectorAll('p') ;  // 需要重新赋值
        console.log(oPs);

    </script>
    
</body>
</html>